import router from './router'
import NProgress from 'nprogress' // progress bar
import 'nprogress/nprogress.css' // progress bar style 



router.beforeEach(async(to, from, next) => {
    // start progress bar
    NProgress.start()
    next()
})

router.afterEach(() => {
    // finish progress bar
    NProgress.done()
})